package com.htudata.core.util.operation;

public class ThrowableOperationUtils {

  public static String getStackTraceStr(Throwable throwable) {
    StringBuffer result = new StringBuffer();
    result.append(String.valueOf(throwable.toString()) + "\r\n");
    byte b;
    int i;
    StackTraceElement[] arrayOfStackTraceElement;
    for (i = (arrayOfStackTraceElement = throwable.getStackTrace()).length, b = 0; b < i; ) {
      StackTraceElement stackTraceElement = arrayOfStackTraceElement[b];
      result.append(stackTraceElement + "\r\n");
      b++;
    } 
    return result.toString();
  }
}
